package com.jinghong.registerlogin.service.impi;

import com.jinghong.registerlogin.mapper.PaperQuestionMapper;
import com.jinghong.registerlogin.model.pojo.Paper;
import com.jinghong.registerlogin.model.pojo.PaperQuestion;
import com.jinghong.registerlogin.model.pojo.Question;
import com.jinghong.registerlogin.service.PaperQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:PaperQuestionServiceimpi
 * Package:com.jinghong.registerlogin.service.impi
 * Description:
 *
 * @Author: 寻月君子
 * @CreatTime:2024/5/25 22:06
 * Version:1.0
 */
@Service
public class PaperQuestionServiceimpi implements PaperQuestionService {

    @Autowired
    private  PaperQuestionMapper paperQuestionMapper;


    @Override
    public void bulkInsert(List<PaperQuestion> paperQuestions) {
        paperQuestionMapper.bulkInsert(paperQuestions);
    }

    @Override
    public List<PaperQuestion> getQuestionId(Integer id) {
        return paperQuestionMapper.getByPaperId(id);
    }

    @Override
    public void bulkDelete(Integer paperId, List<Integer> questionIds) {
        paperQuestionMapper.bulkDelete(paperId,questionIds);
    }


}
